import { RouteRecordRaw } from 'vue-router';

export function useWrapperLayout(routes: RouteRecordRaw | RouteRecordRaw[]): RouteRecordRaw[] {
  if (!Array.isArray(routes)) {
    routes = [routes];
  }

  return [
    {
      path: '/',
      component: () => import('/@/components/Layout/Layout.vue'),
      children: routes
    }
  ];
}
